/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.furb.trabalhoFinal.Strategy;

import javax.swing.JFrame;
import javax.swing.JTextArea;

/**
 *
 * @author Usuario
 */
public class AreaTextoStrategy implements SaidaStrategy{

  @Override
  public void gerarFolha(String folha) {
    JFrame frame = new JFrame();
    frame.setVisible(true);
    JTextArea txt = new JTextArea();
    txt.setSize(800, 600);
    txt.setText(folha);
    frame.add(txt);
    frame.setSize(800, 600);
    
  }

  public static void main(String... args){
    AreaTextoStrategy a = new AreaTextoStrategy();
    a.gerarFolha("asdasda");
  }

}
